<div class="maintop">当前位置：系统设置
    <a href="javascript:;" action="<?=$basepath?>" id="btn_refresh" class="mainFrame button">刷新</a>
    <? if(ISDEBUG){ ?>
        <a href="javascript:$('.debuginfo').toggle();" class="button">调试信息</a>
    <? } ?>
    <a action="/cache/update?key=games_sys_config" title="更新WAP缓存" class="mainFrame button icon-undo" href="javascript:;">更新WAP缓存</a>
    <a href="/cache/update?keys=<?=$this->redisPrefix['SPAMS']?>" class="button" target="ajax" func="loadpage">更新缓存</a>
</div>
<div class="main">
    <ul class="switchs">
        <li id="s1">基本参数</li>
        <li id="s2" class="c">APP</li>
        <li id="s3" class="c">资金</li>
        <li id="s4" class="c">积分</li>
        <li id="s5" class="c">广告</li>
        <li id="s6" class="c">游戏</li>
        <li id="s7" class="c">网址</li>
        <li id="s8" class="c">维护</li>
    </ul>
    <form name="from_add" id="from_add" action="/sys/save" method="post" target="ajax" func="form_submit">
    <div style="display:none;" class="hiddencontentdiv"><textarea id="hiddencontent" name="hiddencontent"></textarea></div>
    <div class="info">
        <div id="infos1">
        	<dl><dt>网站名称：</dt><dd><input type="text" name="website_name" class="int" value="<?=$this->config['website_name'] ?>" /></dd><dd><?=$this->refreshRedisBtn('website_name')?></dd></dl>
            <dl><dt>系统帮助：</dt><dd><input type="text" name="helpid" class="int" value="<?=$this->config['helpid'] ?>" /></dd><dd><?=$this->refreshRedisBtn('helpid')?></dd><dd class="t">系统帮助对应的资讯分类ID</dd> </dl>
            <dl><dt>首次升级代理</dt><dd> 有效受邀请人需 ≥ <input type="text" class="mint" name="upagentnumbers" value="<?=$this->config['upagentnumbers']?>" /> 人，后续升级即按返水总额自动升级</dd><dd><?=$this->refreshRedisBtn('upagentnumbers')?></dd><dd class="t">有效受邀请人是指同时有参与额及充值的用户</dd> </dl>
            <dl><dt>须要邀请人：</dt><dd><select name="mastparent">
                        <option value="0" <?=$this->config['mastparent']?'':'selected' ?>>不须填写</option>
                        <option value="1" <?=$this->config['mastparent']?'selected':'' ?>>必须填写</option>
                    </select></dd><dd><?=$this->refreshRedisBtn('mastparent')?></dd><dd class="t">必须填写邀请人在注册时邀请人不能为空且须要有效的邀请人</dd></dl>
            <dl><dt>注册短信验证：</dt>
                <dd>
                    <select name="enableregsms">
                        <option value="0" <?=$this->config['enableregsms']?'':'selected' ?>>关闭</option>
                        <option value="1" <?=$this->config['enableregsms']?'selected':'' ?>>开启</option>
                    </select>
                </dd>
                <dd><?=$this->refreshRedisBtn('enableregsms')?></dd><dd class="t">是否启用注册短信验证</dd>
            </dl>
            <dl><dt>代理晋级奖励：</dt>
                <dd>
                    <select name="agentupdategiveway">
                        <option value="0" <?=$this->config['agentupdategiveway']?'':'selected' ?>>关闭</option>
                        <option value="1" <?=$this->config['agentupdategiveway']?'selected':'' ?>>开启</option>
                    </select>
                </dd>
                <dd><?=$this->refreshRedisBtn('agentupdategiveway')?></dd>
            </dl>
<!--            <dl><dt>最小返水极差：</dt>-->
<!--                <dd>-->
<!--                    <input name="minrebatevalue" type="text" class="mint" value="--><?//=$this->config['minrebatevalue'] ?><!--" /> %-->
<!--                </dd>-->
<!--                <dd>--><?//=$this->refreshRedisBtn('minrebatevalue')?><!--</dd>-->
<!--                <dd class="t">上下级代理的最小极差值</dd>-->
<!--            </dl>-->
            <dl><dt>VIP升级奖励：</dt>
                <dd>
                    <select name="vipupdategiveway">
                        <option value="0" <?=$this->config['vipupdategiveway']?'':'selected' ?>>关闭</option>
                        <option value="1" <?=$this->config['vipupdategiveway']?'selected':'' ?>>开启</option>
                    </select>
                </dd>
                <dd><?=$this->refreshRedisBtn('vipupdategiveway')?></dd>
            </dl>
            <dl><dt>在线基数：</dt><dd><input type="text" name="onlinecount" class="int" value="<?=$this->config['onlinecount'] ?>" /></dd><dd><?=$this->refreshRedisBtn('onlinecount')?></dd><dd class="t">模拟的在线人数</dd></dl>
            <dl><dt>注册IP：</dt><dd><input type="text" name="ipmax" class="int" value="<?=$this->config['ipmax'] ?>" /></dd><dd><?=$this->refreshRedisBtn('ipmax')?></dd><dd class="t">同一个IP最大可注帐户数</dd> </dl>
        </div>
        <div id="infos2" class="hide">
            <dl><dt>APK下载次数：</dt><dd><?=$this->config['apkdownloadcount']?></dd></dl>
            <dl><dt>iOS下载次数：</dt><dd><?=$this->config['iosdownloadcount']?></dd></dl>
            <dl><dt>iOS审核：</dt><dd><select name="iosaudit">
                        <option value="0" <?=$this->config['iosaudit']?'':'selected' ?>>正常模式</option>
                        <option value="1" <?=$this->config['iosaudit']?'selected':'' ?>>审核模式</option>
                    </select></dd><dd><?=$this->refreshRedisBtn('iosaudit')?></dd></dl>
			<dl><dt>APP版本：</dt><dd><input type="text" name="version" class="wtxt" value="<?=$this->config['version'] ?>" /></dd><dd><?=$this->refreshRedisBtn('version')?></dd></dl>
            <dl><dt>APP资源升级：</dt><dd><input type="text" name="appupdateurl" class="wtxt" value="<?=$this->config['appupdateurl'] ?>" /></dd><dd><?=$this->refreshRedisBtn('appupdateurl')?></dd><dd class="t">建议专门租一台VPS来做下载及更新</dd></dl>
			<dl><dt>APK下载地址：</dt><dd><input type="text" name="apkdownloadurl" class="wtxt" value="<?=$this->config['apkdownloadurl'] ?>" /></dd><dd><?=$this->refreshRedisBtn('apkdownloadurl')?></dd></dl>
			<dl><dt>iOS下载地址：</dt><dd><input type="text" name="iosdownloadurl" class="wtxt" value="<?=$this->config['iosdownloadurl'] ?>" /></dd><dd><?=$this->refreshRedisBtn('iosdownloadurl')?></dd></dl>
		    <dl><dt>商品热门搜索：</dt><dd><input type="text" name="appsearchkeys" class="wtxt" value="<?=$this->config['appsearchkeys']?>" /></dd><dd><?=$this->refreshRedisBtn('appsearchkeys')?></dd></dl>
        </div>
        <div id="infos3" class="hide">
            <dl><dt>财务帐号：</dt><dd><input type="text" name="financeAccount" class="int" value="<?=$this->config['financeAccount'] ?>" /></dd><dd><?=$this->refreshRedisBtn('financeAccount')?></dd></dl>
			<dl><dt>货币名称：</dt><dd><input type="text" name="currencyName" class="mint" value="<?=$this->config['currencyName'] ?>" /></dd><dd><?=$this->refreshRedisBtn('currencyName')?></dd></dl>
            <dl><dt>注册赠送：</dt><dd><input type="text" name="registergive" class="mint" value="<?=$this->config['registergive'] ?>" /></dd><dd><?=$this->refreshRedisBtn('registergive')?></dd></dl>
            <dl><dt>试玩注册赠送：</dt><dd><input type="text" name="registertrygive" class="mint" value="<?=$this->config['registertrygive'] ?>" /></dd><dd><?=$this->refreshRedisBtn('registertrygive')?></dd></dl>
            <dl><dt>提现功能：</dt><dd>
                <select name="enablecash">
                    <option value="0" <?=$this->config['enablecash']?'':'selected' ?>>关闭</option>
                    <option value="1" <?=$this->config['enablecash']?'selected':'' ?>>开启</option>
                </select>
            </dd><dd><?=$this->refreshRedisBtn('enablecash')?></dd><dd class="t">提现功能关闭后系统将不显示提现链接（按钮）及提现页面</dd></dl>
            <dl><dt>充值功能：</dt>
                <dd>
                    <select name="enablerecharge">
                        <option value="0" <?=$this->config['enablerecharge']?'':'selected' ?>>关闭</option>
                        <option value="1" <?=$this->config['enablerecharge']?'selected':'' ?>>开启</option>
                    </select>
                </dd>
                <dd><?=$this->refreshRedisBtn('enablerecharge')?></dd><dd class="t">充值功能关闭后系统将不显示充值链接（按钮）及充值页面</dd>
            </dl>
            <dl><dt>首次充值 ≥ </dt><dd><input type="text" class="mint" value="<?=$this->config['firstrechargecoin'] ?>" name="firstrechargecoin"></dd><dd><?=$this->refreshRedisBtn('firstrechargecoin')?></dd>
                <dd> 时赠送 </dd><dd><input type="text" class="mint" value="<?=$this->config['firstrechargegive'] ?>" name="firstrechargegive"> </dd><dd><?=$this->refreshRedisBtn('firstrechargegive')?></dd></dl>
            <dl><dt>充值总额 ≥ </dt><dd><input type="text" class="mint" value="<?=$this->config['sumrechargecoin'] ?>" name="sumrechargecoin"></dd><dd><?=$this->refreshRedisBtn('sumrechargecoin')?></dd>
                <dd> 时激活上级的推荐赠送及当前用户的注册赠送 </dd></dl>
            <dl><dt>充值限制：</dt><dd>
                    <input type="text" name="minrecharge" class="mint" value="<?=$this->config['minrecharge'] ?>" /></dd><dd><?=$this->refreshRedisBtn('minrecharge')?></dd><dd> 至 </dd>
                <dd><input type="text" name="maxrecharge" class="mint" value="<?=$this->config['maxrecharge'] ?>" /></dd><dd><?=$this->refreshRedisBtn('maxrecharge')?></dd>
            <dd class="t">充值最低<?=$this->config['minrecharge'] ?><?=$this->config['currencyName'] ?>，最高<?=$this->config['maxrecharge'] ?><?=$this->config['currencyName'] ?></dd></dl>
            <dl><dt>传红包功能：</dt>
                <dd>
                    <select name="enablechange">
                        <option value="0" <?=$this->config['enablechange']?'':'selected' ?>>关闭</option>
                        <option value="1" <?=$this->config['enablechange']?'selected':'' ?>>开启</option>
                    </select>
                </dd>
                <dd><?=$this->refreshRedisBtn('enablerecharge')?></dd><dd class="t">充值功能关闭后系统将不显示充值链接（按钮）及充值页面</dd>
            </dl>
            <dl><dt>转帐费率：</dt><dd><input type="text" name="changerate" class="mint" value="<?=$this->config['changerate'] ?>" /> %</dd><dd><?=$this->refreshRedisBtn('changerate')?></dd></dl>
            <dl><dt>提现时间：</dt><dd>
                    <input type="text" name="cashbegintime" class="mint" value="<?=$this->config['cashbegintime'] ?>" /></dd><dd><?=$this->refreshRedisBtn('cashbegintime')?></dd><dd> 至 </dd>
                    <dd><input type="text" name="cashendtime" class="mint" value="<?=$this->config['cashendtime'] ?>" /></dd><dd><?=$this->refreshRedisBtn('cashendtime')?></dd>
            <dd class="t">提现时间在（<?=$this->config['cashbegintime'] ?> ~ <?=$this->config['cashendtime'] ?>）</dd></dl>
            <dl><dt>提现限制：</dt><dd>
                    <input type="text" name="mincash" class="mint" value="<?=$this->config['mincash'] ?>" /></dd><dd><?=$this->refreshRedisBtn('mincash')?></dd><dd> 至 </dd>
                <dd><input type="text" name="maxcash" class="mint" value="<?=$this->config['maxcash'] ?>" /></dd><dd><?=$this->refreshRedisBtn('maxcash')?></dd>
                <dd>参与红包需 ≥ <input type="text" name="coinodds" class="mint" value="<?=$this->config['coinodds'] ?>" /></dd><dd><?=$this->refreshRedisBtn('coinodds')?></dd><dd> 倍
            </dd><dd class="t">提现最低<?=$this->config['mincash'] ?><?=$this->config['currencyName'] ?>，最高<?=$this->config['maxcash'] ?><?=$this->config['currencyName'] ?></dd></dl>
        </div>
        <div id="infos4" class="hide">
            <dl><dt>积分功能：</dt>
                <dd>
                    <select name="enablescore">
                        <option value="0" <?=$this->config['enablescore']?'':'selected' ?>>关闭</option>
                        <option value="1" <?=$this->config['enablescore']?'selected':'' ?>>开启</option>
                    </select>
                </dd>
                <dd><?=$this->refreshRedisBtn('enablescore')?></dd><dd class="t">关闭后，签到及以下功能将全部失效</dd>
            </dl>
            <dl><dt>注册送:</dt><dd><input type="text" name="reggivescore" class="mint" value="<?=$this->config['reggivescore'] ?>" /> 积分</dd><dd><?=$this->refreshRedisBtn('reggivescore')?></dd></dl>
            <dl><dt>每天签到送：</dt><dd><input type="text" name="givescore" class="mint" value="<?=$this->config['givescore'] ?>" /> 积分</dd><dd><?=$this->refreshRedisBtn('givescore')?></dd></dl>
            <dl><dt>连签：</dt>
                <dd><input type="text" name="givescoredays" class="mint" value="<?=$this->config['givescoredays'] ?>" /> 天天再送</dd><dd><?=$this->refreshRedisBtn('givescoredays')?></dd>
                <dd><input type="text" name="givescoremore" class="mint" value="<?=$this->config['givescoremore'] ?>" /> 积分</dd><dd><?=$this->refreshRedisBtn('givescoremore')?></dd>
            </dl>
            <dl><dt>参与红包：</dt><dd>送积分比例为 1 比  <input type="text" name="sgscore" class="mint" value="<?=$this->config['sgscore'] ?>" /> </dd><dd><?=$this->refreshRedisBtn('sgscore')?></dd></dl>
        </div>
        <div id="infos5" class="hide">
            <dl><dt>首页公告：</dt><dd><input type="text" name="homenotice" class="txt" value="<?=$this->config['homenotice'] ?>" /></dd><dd><?=$this->refreshRedisBtn('homenotice')?></dd></dl>
            <dl><dt>公告展示：</dt><dd>
                    <select name="homenoticeenable">
                        <option value="0" <?=$this->config['homenoticeenable']?'':'selected' ?>>关闭</option>
                        <option value="1" <?=$this->config['homenoticeenable']?'selected':'' ?>>开启</option>
                    </select>
                </dd><dd><?=$this->refreshRedisBtn('homenoticeenable')?></dd></dl>
            <dl><dt>图片地址：</dt>
                <dd><input type="text" name="alertbgwrap" id="alertbgwrap" class="txt" value="<?=$this->config['alertbgwrap'] ?>" /></dd>
                <dd><input type="button" name="uploadbutton" id="uploadbutton" value="选择" /></dd>
                <dd><?=$this->refreshRedisBtn('alertbgwrap')?></dd>
                <dd class="t">图片尺寸：728x867</dd>
            </dl>
            <dl><dt>图片链接：</dt>
                <dd><input type="text" name="homeimgavurl" class="txt" value="<?=$this->config['homeimgavurl'] ?>" /></dd>
                <dd><?=$this->refreshRedisBtn('homeimgavurl')?></dd>
            </dl>
            <dl><dt>图片广告：</dt><dd>
                    <select name="homeimgav">
                        <option value="0" <?=$this->config['homeimgav']?'':'selected' ?>>关闭</option>
                        <option value="1" <?=$this->config['homeimgav']?'selected':'' ?>>开启</option>
                    </select>
                </dd><dd><?=$this->refreshRedisBtn('homeimgav')?></dd></dl>
            <dl><dt>首页滚动公告：</dt><dd><input type="text" name="homerolling" class="txt" value="<?=$this->config['homerolling'] ?>" /></dd><dd><?=$this->refreshRedisBtn('homerolling')?></dd></dl>
        </div>
        <div id="infos6" class="hide">
            <dl><dt>随机概率：</dt><dd><input type="text" name="gameroundswitch" class="mint" value="<?=$this->config['gameroundswitch'] ?>" /></dd><dd><?=$this->refreshRedisBtn('gameroundswitch')?></dd>
                <dd class="t">当玩家不足以开启概率算法时的随机比例（如：2:8，20%开，80%不开）</dd>
            </dl>
            <dl><dt>概率功能：</dt><dd>
                    <select name="enablegameroundswitch">
                        <option value="0" <?=$this->config['enablegameroundswitch']?'':'selected' ?>>关闭</option>
                        <option value="1" <?=$this->config['enablegameroundswitch']?'selected':'' ?>>开启</option>
                    </select>
                </dd><dd><?=$this->refreshRedisBtn('enablegameroundswitch')?></dd>
                <dd class="t">概率功能关闭时所有的游戏都采用随机分配红包</dd>
            </dl>
            <dl><dt>注册试玩：</dt><dd>
                    <select name="enabletryregister">
                        <option value="0" <?=$this->config['enabletryregister']?'':'selected' ?>>关闭</option>
                        <option value="1" <?=$this->config['enabletryregister']?'selected':'' ?>>开启</option>
                    </select>
                </dd><dd><?=$this->refreshRedisBtn('enabletryregister')?></dd>
                <dd class="t">关闭时系统将不提供试玩帐号的注册</dd>
            </dl>
            <dl><dt>自动入概：</dt><dd>
                    <select name="autoinprobability">
                        <option value="0" <?=$this->config['autoinprobability']?'':'selected' ?>>关闭</option>
                        <option value="1" <?=$this->config['autoinprobability']?'selected':'' ?>>开启</option>
                    </select>
                </dd><dd><?=$this->refreshRedisBtn('autoinprobability')?></dd><dd class="t">新注册的用户自动进入概率库，并按默认的概率值确定输赢概率</dd>
                <dd><input type="text" name="defaultprobability" class="mint" value="<?=$this->config['defaultprobability'] ?>" /></dd>
                <dd><?=$this->refreshRedisBtn('defaultprobability')?></dd>
                <dd class="t">默认的赢概率</dd>
            </dl>
            <dl><dt>概率有效：</dt>
                <dd><input type="text" name="probabilitytimes" class="mint" value="<?=$this->config['probabilitytimes'] ?>" /></dd>
                <dd><?=$this->refreshRedisBtn('probabilitytimes')?></dd>
                <dd class="t">新注册的用户自动进入概率库后多少秒后将移出</dd>
            </dl>
        </div>
        <div id="infos7" class="hide">
            <dl><dt>官方网址：</dt><dd><input type="text" name="weburl" class="wtxt" value="<?=$this->config['weburl'] ?>" /></dd><dd><?=$this->refreshRedisBtn('weburl')?></dd></dl>
            <dl><dt>首页客服：</dt><dd><input type="text" name="homeservice" class="wtxt" value="<?=$this->config['homeservice'] ?>" /></dd><dd><?=$this->refreshRedisBtn('homeservice')?></dd></dl>
            <dl><dt>API地址：</dt><dd><input type="text" name="apiurl" class="wtxt" value="<?=$this->config['apiurl'] ?>" /></dd><dd><?=$this->refreshRedisBtn('apiurl')?></dd></dl>
            <dl><dt>WSS地址：</dt><dd><input type="text" name="wssurl" class="wtxt" value="<?=$this->config['wssurl'] ?>" /></dd><dd><?=$this->refreshRedisBtn('wssurl')?></dd></dl>
            <dl><dt>注册地址：</dt><dd><input type="text" name="registerurl" class="wtxt" value="<?=$this->config['registerurl'] ?>" /></dd><dd><?=$this->refreshRedisBtn('registerurl')?></dd></dl>
            <dl><dt>图片地址：</dt><dd><input type="text" name="imgsurl" class="wtxt" value="<?=$this->config['imgsurl'] ?>" /></dd><dd><?=$this->refreshRedisBtn('imgsurl')?></dd></dl>
        </div>
        <div id="infos8" class="hide">
            <dl><dt>网站开关：</dt><dd><select name="switchWeb">
                        <option value="0" <?=$this->config['switchWeb']?'':'selected' ?>>禁用</option>
                        <option value="1" <?=$this->config['switchWeb']?'selected':'' ?>>启用</option>
                    </select></dd><dd class="t">网站关闭时将显示以下内容</dd><dd><?=$this->refreshRedisBtn('switchWeb')?></dd></dl>
            <dl><dt>维护说明：</dt><dd><textarea name="webCloseServiceResult" class="wtxt"><?=$this->config['webCloseServiceResult'] ?></textarea></dd></dl>
        </div>
        <div class="btndiv">
        	<input type="submit" value="确认" class="btnbig confirm" />
        	<input type="button" onclick="javascript:location.href='/sys/baseset'" class="btnbig" value="取消" />
        </div>
    </div>
    </form>
    <div class="bottomline"></div>
</div>
<? $this->display('editor',array('textareaid'=>'hiddencontent','uploadbutton'=>'uploadbutton','inputid'=>'alertbgwrap')); ?>